package com.qf.java2105.huangchuang.hotel.pojo;

import java.math.BigDecimal;
import java.sql.Date;

/**
 * 用户实体类
 * @author hcvg
 * @version v1.0
 * @date 2021/09/15
 **/
public class User {
    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 用户是否为管理员
     */
    private Integer isAdmin;

    /**
     * 用户联系方式
     */
    private String phone;

    /**
     * 用户性别
     */
    private Integer gender;

    /**
     * 用户状态
     */
    private Integer userStatus;

    /**
     * 用户信息创建时间
     */
    private Date userCreateTime;

    /**
     * 用户信息更新时间
     */
    private Date userUpdateTime;

    /**
     * 用户是否删除
     */
    private Integer isDelete;

    /**
     * 用户是否为会员
     */
    private Integer isMember;

    /**
     * 用户余额
     */
    private BigDecimal balance;

    public User() {
    }

    public User(String username, String password, String nickName, Integer isAdmin, String phone, Integer gender, Integer userStatus, Date userCreateTime, Date userUpdateTime, Integer isDelete, Integer isMember, BigDecimal balance) {
        this.username = username;
        this.password = password;
        this.nickName = nickName;
        this.isAdmin = isAdmin;
        this.phone = phone;
        this.gender = gender;
        this.userStatus = userStatus;
        this.userCreateTime = userCreateTime;
        this.userUpdateTime = userUpdateTime;
        this.isDelete = isDelete;
        this.isMember = isMember;
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickName='" + nickName + '\'' +
                ", isAdmin=" + isAdmin +
                ", phone='" + phone + '\'' +
                ", gender=" + gender +
                ", userStatus=" + userStatus +
                ", userCreateTime=" + userCreateTime +
                ", userUpdateTime=" + userUpdateTime +
                ", isDelete=" + isDelete +
                ", isMember=" + isMember +
                ", balance=" + balance +
                '}';
    }

    public Long getUserId() {
        return userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Integer isAdmin) {
        this.isAdmin = isAdmin;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public Date getUserCreateTime() {
        return userCreateTime;
    }

    public void setUserCreateTime(Date userCreateTime) {
        this.userCreateTime = userCreateTime;
    }

    public Date getUserUpdateTime() {
        return userUpdateTime;
    }

    public void setUserUpdateTime(Date userUpdateTime) {
        this.userUpdateTime = userUpdateTime;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getIsMember() {
        return isMember;
    }

    public void setIsMember(Integer isMember) {
        this.isMember = isMember;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }
}
